/*
 * Bullet.h
 *
 *  Created on: 02/05/2013
 *      Author: Vitor
 */

#ifndef BULLET_H_
#define BULLET_H_

#include "Sprite.h"
#include "Point.h"
#include "Vector2.h"
#include "GameObject.h"
#include <math.h>

class Bullet: public GameObject {
private:
	Sprite* bulletSprite;
	Vector2 velocity;
	float speed;
	bool enemy;
	bool dead;
	float angle;

public:
	Bullet(Point position, Vector2 velocity, bool isEnemy,
			Sprite* bulletSprite);
	virtual ~Bullet();
	int update(double dt);
	void render(float cameraX, float cameraY);

	const Vector2& getVelocity() const {
		return velocity;
	}

	void setVelocity(const Vector2& velocity) {
		this->velocity = velocity;
	}

	bool isDead() const {
		return dead;
	}

	void setDead(bool dead) {
		this->dead = dead;
	}
};

#endif /* BULLET_H_ */
